/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Client;
import java.io.Serializable;
public class Exchanger implements Serializable{

    private int command;
    private Object obj;
    public Exchanger(int cmd, Object obj)
    {
        command = cmd;
        this.obj = obj;
    }
    public void setCommand (int cmd)
    {
        command=cmd;
    }

    public void setObj (Object x)
    {
            obj = x;
    }

    public int getCommand ()
    {return command;
    }

    public Object getObj()

    {
        return obj;
    }
}
